/* 购物车业务 */
import  httpInstance  from "@/utils/http";
export const shopCartAPI = ({ skuId, count }) => {
   return httpInstance({
        url: '/member/cart',
        method: 'POST',
        data: {
            skuId,
            count
        }
    })
}
/* 获取最新过无车列表 */
export const shopNewCartAPI = () => {
    return httpInstance({
        url:'/member/cart'
    })
}
/* 删除 */
export const deletCartAPI = (ids) => {
    return httpInstance({
        url:'/member/cart',
        method:'DELETE',
        data:{
            ids
        }
    })
}
/* 合并购物车 */
export const margeCarAPI = (data)=> {
    return httpInstance({
        method:'POST',
        url:'/member/cart/merge',
        data:{
            data
        }
    })
}